package site.wenneng.dev.controller;

import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import site.wenneng.dev.service.SimpleBizService;
import site.wenneng.dev.objs.dto.common.Result;

@AllArgsConstructor
@RestController
@RequestMapping("/system/task")
public class SystemTaskController {

    private SimpleBizService simpleBizService;

    @RequestMapping("/sync-project")
    public Result<Void> syncProject() {
        simpleBizService.syncProject();
        return Result.ok();
    }
}
